/**
 * 
 */

package com.kgajowy.ast;

import com.kgajowy.datastoreSampleClasses.*;
import com.kgajowy.objects.SBAStore;


/**
 * @author q530
 * 
 */
public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
        
        //cw2.cw2_s1();
        //cw2.cw2_s2();
        //cw2.cw2_s3();
        
        SBAStore dbstore = new SBAStore();
        //loadSampleJavaObjects(dbstore);
        dbstore.loadXML("dane_do_zap_testowych.xml");
        dbstore.printDBState();
        
        //cw3.dot_operator(dbstore);
        //cw3.where_operator(dbstore);
        
        cw3.nowak_married(dbstore);
        cw3.address_number(dbstore);
        
       
    }

    @SuppressWarnings("unused")
    private static void loadSampleJavaObjects(SBAStore dbstore) {
        Country cUSA = new Country("USA", 13);
        
        State a = new State("Texas");
        City a_1 = new City("TexasCity_1", 3721445, new DumbInfo("DSAEA","fEr43w",5.134));
        City a_2 = new City("new Texas", 421445, new DumbInfo("5twyh","t4q3g",7.7645));
        City a_3 = new City("rodeo", 54323, new DumbInfo("favcxa","g5w3",53.235));
        a.addCity(a_1);
        a.addCity(a_2);
        a.addCity(a_3);
        
        State b = new State("Alabama");
        City b_1 = new City("ALAAbaa", 3721445, new DumbInfo("dsa","fqaz",45543.1223442));
        City b_2 = new City("brakada", 421445, new DumbInfo("zxcczxzc","fadev",243.3));
        City b_3 = new City("bra", 54323, new DumbInfo("g54g","6y54wrtg",0.0));
        b.addCity(b_1);
        b.addCity(b_2);
        b.addCity(b_3);
        
        State c = new State("Alaska");
        City c_1 = new City("zimno", 0, new DumbInfo("mroz","zloto",99999999.0));
        c.addCity(c_1);
        State d = new State("Dakota");
        
        cUSA.addState(a);
        cUSA.addState(b);
        cUSA.addState(c);
        cUSA.addState(d);
        
        dbstore.addJavaObject(cUSA, "Kraj");
        
    }
}
